﻿using System.IO;
using SQLite;
using Cashbook.Services;

[assembly: Xamarin.Forms.Dependency(typeof(Cashbook.Droid.DatabaseConnection_Android))]
namespace Cashbook.Droid
{
   
	public class DatabaseConnection_Android : IDatabaseConnection
	{
		public SQLiteConnection DbConnection()
		{
			var dbName = "Cashbooks.db3";
			var path = Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal), dbName);
			return new SQLiteConnection(path);
		}
	}
}
